var menu_edit = {

	show_menu_edit: function () {
		var menu_data;
		hide_toolbar_edit ();
		hide_edit_article ();
		show_menu_edit_area ();
		menu = json_from_file("/modules/menu/menu_json.php?text=true");	
		navbar = json_from_file("/modules/menu/navbar_json.php?text=true");
		load_menu_data ();
		window.sessionStorage.edit_menu = true;
	}
};

function show_toolbar_edit () {
     hide_menu_edit_area();
     window.sessionStorage.editmode = 1;
		 //console.debug(window.sessionStorage.editmode);
     document.getElementById("edit_middle_bar_title").style.visibility = "visible";   
		 document.getElementById("edit_info_bar").style.visibility = "visible";
		 //document.getElementById(info_remove_box[0]).style.visibility = "visible";
		 document.getElementById("page_save_button").style.visibility = "visible";
		 
		 //document.getElementById("send_for_review_button").style.visibility = "visible";
		 
		 var send_for_review_button = document.getElementById("send_for_review_button");
		 if (send_for_review_button != null) send_for_review_button.style.visibility = "visible";
		 
		 var publish_save_button = document.getElementById("publish_save_button");
		 if (publish_save_button != null) publish_save_button.style.visibility = "visible";
		 
		 document.getElementById("edit_info_bar").style.visibility="visible";
		 var edit_info_bar_boxes = document.getElementById("edit_info_bar").getElementsByTagName("div");
		 for (i=0;i<edit_info_bar_boxes.length;i++) edit_info_bar_boxes[i].style.visibility = "visible";
		 window.sessionStorage.removeItem("edit_menu");
		
}
